class ResourceCategory < ActiveRecord::Base
  DOCUMENT = {:id => 1, :name => "Document"}
  IMAGE = {:id => 2, :name => "Image"}
  VIDEO = {:id => 3, :name => "Video"}
  LINK = {:id => 4, :name => "Link"}

  def to_s
    name
  end

  def self.options(init_ = [])
    find_all.inject(init_) {|result, i| result.push([i.name, i.id])}
  end
end